<include file="public@header"/>
<style type="text/css">
    .cardBox {
        width: 250px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        text-align: center;
        float: left;
        margin-right: 10px;
        padding: 5px;
        padding-top: 15px;
    }

    .headerBox {
        color: #fff;
        padding: 10px;
        font-size: 15px;
        height: 80px;
    }

    .bodyBox {
        padding: 10px;
    }

    .bodyBox p {
        margin-left: 5px;
    }
</style>

</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('index',array('id'=>$id))}">施工员</a></li>
        <li><a href="{:url('add',array('type'=>1,'id'=>$id))}">施工日志新增</a></li>
        <li><a href="{:url('add',array('type'=>2,'id'=>$id))}">内部员工点工新增</a></li>
        <li><a href="{:url('add',array('type'=>3,'id'=>$id))}">外请员工点工新增</a></li>
        <li><a href="{:url('add',array('type'=>4,'id'=>$id))}">甲供材申请单</a></li>
        <li><a href="{:url('add',array('type'=>5,'id'=>$id))}">公司材料申请单</a></li>
    </ul>


    <volist name="all" id="po">
        <div class="cardBox" style="margin-bottom: 90px">
            <div class="headerBox" style="background-color: #006fc4;">
                <p>
                    班组长/员工姓名 : {$po.uName}
                </p>
                <p>
                    总人数 : {$po.numbers}
                </p>
            </div>
        </div>
    </volist>


    <form method="post" class="js-ajax-form margin-top-20">

        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>记录人</th>
                <th>时间</th>
                <th>姓名</th>
                <th>职务/班组</th>
                <th>人数</th>
                <th>描述</th>
                <th>是否作废</th>
                <th>{:lang('ACTIONS')}</th>
            </tr>
            </thead>
            <tbody>
                <volist name="res" id="v">
                    <tr>
                        <td>{$v.uname}</td>
                        <td>{$v.time}</td>
                        <td>{$v.lname}</td>
                        <td>{$v.ltype}</td>
                        <td>{$v.nums}</td>
                        <td>{$v.desc}</td>
                        <td>
                            <if condition="$v['del'] eq 1">
                                <span class="label label-success">生效</span>
                                <else/>
                                <span class="label label-danger">作废</span> <?php if($v['admin_name']){?>   ----- {$v.admin_name}<?php }?>
                            </if>
                        </td>
                        <td>
                            <a class="btn btn-xs btn-primary js-ajax-submit"
                               href="{:url('look',array('id'=>$v['id']))}">查看详情</a>
                            <?php
                               if($role == 1 || $userId == 1){
                                ?>
                            <a class="btn btn-xs btn-danger js-ajax-delete"
                               href="{:url('del',array('id'=>$v['id']))}">{:lang('DELETE')}</a>
                            <?php
                                  }
                                ?>
                        </td>
                    </tr>
                </volist>

            </tbody>
        </table>

    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>